package com.cds.alert.pojo;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 
 * 类文件: AlertReport
 * <p>
 * <p>
 * 类描述：报表订阅信息表
 * <p>
 * 作     者： migrant
 * <p>
 * 日     期： 2014年3月11日
 * <p>
 * 时     间： 下午7:08:25
 * <p>
 */
@Entity
@Table(name = "alert_report")
public class AlertReport extends IdEntity {

	public enum TimeSpan {
		DAY, MONTH, YEAR, OTHER
	}

	/**报表类型*/
	private int tag;
	/**报表名称*/
	private String reportName;
	/**时间范围*/
	private TimeSpan timeSpan;
	/**统计范围（分组序号）*/
	private String groupId;
	/**关联的分组名*/
	private String groupname;
	/**接收地址*/
	private String receiver;
	/**备注*/
	private String description;

	public int getTag() {
		return tag;
	}

	public void setTag(int tag) {
		this.tag = tag;
	}

	public String getReportName() {
		return reportName;
	}

	public void setReportName(String reportName) {
		this.reportName = reportName;
	}

	public TimeSpan getTimeSpan() {
		return timeSpan;
	}

	public void setTimeSpan(TimeSpan timeSpan) {
		this.timeSpan = timeSpan;
	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getGroupname() {
		return groupname;
	}

	public void setGroupname(String groupname) {
		this.groupname = groupname;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
